package jUnit_tests;

import static org.junit.Assert.*;
import model.Address;

import org.junit.Test;

/**
 * Junit test for the Address class.
 * 
 * @author Abdiel Cabrera
 *
 */
public class Junit_test_for_Address {

	// valid Address
	private  Address address1 = new Address("123 crasy St", "", "B", "Miami", "FL", "33125");
 	
	// invalid Address with invalid Street
	private  Address address2 = new Address("", "", "B", "Miami", "FL", "33125");
	 	
	// invalid Address with invalid city
	private  Address address3 = new Address("123 crasy St", "", "B", "", "FL", "33125");
	
	// invalid Address with invalid state
	private  Address address4 = new Address("123 crasy St", "", "B", "Miami", "FLdsfv", "33125");
		
	// invalid Address with invalid zip code
	private  Address address5 = new Address("123 crasy St", "", "B", "Miami", "FL", "33125dv");
		
	@Test
	public void test() {
		assertTrue("Testing address1", address1.isValid());
		assertFalse("Testing address2", address2.isValid());
		assertFalse("Testing address3", address3.isValid());
		assertFalse("Testing address4", address4.isValid());
		assertFalse("Testing address5", address5.isValid());
	}
}
